﻿using UnityEngine;
using System.Collections;
public enum EMenuButton
{
    NEWGAME,
    HELP,
    ABOUT,
    EXIT

}

public class UIMenuButton : MonoBehaviour {
    public EMenuButton eMenuButton;

    void OnClick()
    {
        switch (eMenuButton)
        {
            case EMenuButton.NEWGAME:
                Application.LoadLevel("Level");
                break;
            case EMenuButton.ABOUT:
                Debug.Log("About");
                break;
            case EMenuButton.HELP:
                Debug.Log("Help");
                break;
            case EMenuButton.EXIT:
                Debug.Log("Exit");
                break;
        }
    }
}
